package com.sxfans.rmi.server;

import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

import com.sxfans.rmi.IHello;


public class HelloServer {
	public static void main(String[] args) throws RemoteException, Exception, AlreadyBoundException {
		IHello rhello = new HelloImpl();
		LocateRegistry.createRegistry(8888);
		 Naming.bind("rmi://localhost:8888/RHello",rhello);
	}
}
